<template>
  <demoBlock title="滚动导航">
    <vcu-tabs v-model:active="active" scrollspy sticky>
      <vcu-tab v-for="index in 8" :title="'选项 ' + index" :key="index">
        内容 {{ index }}
      </vcu-tab>
    </vcu-tabs>
  </demoBlock>
</template>

<script>
import { defineComponent, ref } from "vue";

export default defineComponent({
  setup() {
    const active = ref(3);
    return { active };
  },
});
</script>
